package com.platform.modules.cpt.service;

import java.util.List;
import java.util.Map;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.platform.modules.cpt.entity.CptAcceptanceEntity;
import com.platform.modules.cpt.entity.CptAcceptanceSuperviseEntity;


public interface CptAcceptanceSuperviseService extends IService<CptAcceptanceSuperviseEntity> {

	CptAcceptanceSuperviseEntity queryOne(Map<String, Object> params);

	Page<CptAcceptanceSuperviseEntity> queryPageByApp(Map<String, Object> params);
	
	/**
	 * 生成 竣工验收监督记录一(后续盖章)
	 * @param execution
	 */
	Map<String, Object> createGcjgysjdjl1File(CptAcceptanceEntity cptAcceptanceEntity, String newFileName);
	
	/**
	 * 生成 竣工验收监督记录二(后续盖章)
	 * @param execution
	 */
	Map<String, Object> createGcjgysjdjl2File(CptAcceptanceEntity cptAcceptanceEntity, String newFileName);

	/**
	 * 下载 竣工验收监督记录一文件流
	 * @param execution
	 */
	void downloadGcjgysjdjlFile(String cptId, HttpServletRequest request, HttpServletResponse response, String attCode);
	
	/**
	 * 盖章-竣工验收监督记录一 文件
	 * @param request
	 * @param cptId
	 */
	void signGcjgysjdjlFile(HttpServletRequest request, String cptId, String attCode, String FileName);
	
	/**
	 * 下载 竣工验收监督记录文件
	 * @param execution
	 */
	void downloadSignGcjgysjdjlFile(String cptId, HttpServletRequest request, HttpServletResponse response, String attCode);
}
